package com.example.lottery_system.service.dto;

import com.example.lottery_system.service.Enum.ActivityStatusEnum;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ActivityListDto {
    private Long activityId;
    private String activityName;
    private String description;

    private ActivityStatusEnum status;
    public Boolean valid() {
        return status.name().equalsIgnoreCase(ActivityStatusEnum.RUNNING.name());
    }
}
